package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/23
*/
@Data
@ApiModel("问诊中医生设置的提醒")
@Table(name = "tbl_booking_reminder")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingReminder extends BaseEntity {
    @Column(name = "booking_id")
    private String bookingId;

    @Column(name = "mem_id")
    private String memId;

    /**
     * 提醒间隔时长
     */
    @Column(name = "reminder_value")
    @ApiModelProperty("提醒间隔时长")
    private String reminderValue;

    /**
     * 1:days 2:weeks 3:months
     */
    @Column(name = "reminder_type")
    @ApiModelProperty("1:days 2:weeks 3:months")
    private Integer reminderType;

    /**
     * Todo 提醒时间，如果有重复，是否每次提醒之后更新下一次提醒时间
     */
    @Column(name = "reminder_date")
    @ApiModelProperty("Todo 提醒时间，如果有重复，是否每次提醒之后更新下一次提醒时间")
    private Date reminderDate;

    /**
     * 药品id 对应tbl_product
     */
    @Column(name = "medication_id")
    @ApiModelProperty("药品id 对应tbl_product")
    private String medicationId;

    /**
     * todo
     */
    @Column(name = "lab_id")
    @ApiModelProperty("todo")
    private String labId;

    /**
     * Todo 应该是持续时长
     */
    @Column(name = "repeat_duration")
    @ApiModelProperty("Todo 应该是持续时长")
    private Integer repeatDuration;

    /**
     * 1:day,2:week,3:month,lab result时如果有时长，此处固定为1
     */
    @Column(name = "repeat_duration_unit")
    @ApiModelProperty("1:day,2:week,3:month,lab result时如果有时长，此处固定为1")
    private Integer repeatDurationUnit;

    /**
     * 类型 ,1:lab result;2:medication refill;3:next appointment
     */
    @Column(name = "proposed_consultation_type")
    @ApiModelProperty("类型 ,1:lab result;2:medication refill;3:next appointment ")
    private Integer proposedConsultationType;

    /**
     * Todo 
     */
    @Column(name = "proposed_consultation_status")
    @ApiModelProperty("Todo ")
    private Integer proposedConsultationStatus;

    /**
     * 提醒的预约已经开始了问诊
     */
    @Column(name = "is_proposed_consultation_started")
    @ApiModelProperty("提醒的预约已经开始了问诊 ")
    private Integer isProposedConsultationStarted;

    /**
     * Todo 
     */
    @Column(name = "original_booking_id")
    @ApiModelProperty("Todo ")
    private String originalBookingId;
}